//
//  PaymentManager.h
//  WisdomZhuHai
//
//  Created by Admin on 14-11-3.
//  Copyright (c) 2014年 wyd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UPPayPlugin.h"

#define PAYWAY_IDENTIFIER_ALIPAY @"alipay"
#define PAYWAY_IDENTIFIER_UPPAY @"uppay"
#define PAYWAP_IDENTIFIER_NOPAY @"nopay"

@protocol PaymentManagerDelegate <NSObject>

- (void)didPayCanceled:(NSString*)payStatus;
- (void)didPayCompleted:(BOOL)ifSuccess payStatus:(NSString*)payStatus;

@end

@interface PaymentManager : NSObject <UPPayPluginDelegate>

@property (nonatomic,weak) id<PaymentManagerDelegate> delegate;

+ (PaymentManager*)shareInstance;

- (void)startPay:(NSString*)payWayIdentifier withParams:(NSDictionary*)params fromViewController:(UIViewController*)viewController;

- (void)parse:(NSURL *)url;

@end
